package com.jali.crud.service;

import com.jali.crud.bean.JaAward;
import com.jali.crud.bean.JaAwardExample;
import com.jali.crud.dao.JaAwardMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jali
 * @create 2019-01-27 21:39
 */
@Service
public class JaAwardService {

    @Autowired
    JaAwardMapper jaAwardMapper;

    public List<JaAward> selectJaAwardList(JaAwardExample example) {
        return jaAwardMapper.selectByExample(example);
    }

    public JaAward getAward(Integer id) {
        return jaAwardMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(JaAward record){
        return jaAwardMapper.updateByPrimaryKeySelective(record);
    }
}
